<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>用户中心</title>
	<link rel="stylesheet" type="text/css" href="/static/index/css/reset.css">
	<link rel="stylesheet" type="text/css" href="/static/index/css/jquery.pagination.css">
    <link rel="stylesheet" type="text/css" href="/static/index/css/main.css">
    <script type="text/javascript" src="/static/index/js/jquery-1.12.4.min.js"></script>
	<script type="text/javascript" src="/static/index/js/jquery.pagination.min.js"></script>
</head>
<body class="inframe_body">
    <div class="news_list">
        <h3>新闻列表</h3>
        <ul class="article_list">
            {% for one_news in news_paginate.items %}
            <li><a href="#">{{ one_news.title }}</a><em class="{{ one_news.status|show_news_status_style_name }}">{{ one_news.status|show_news_status_name }}</em><span>{{ one_news.create_time }}</span></li>
            {% endfor %}
{#            <li>#}
{#                <a href="#">智能音箱“不智能”：这次轮到三星语音助手Bixby被吐槽了</a>#}
{#                <em class="nopass">未通过</em>#}
{#                <span>2018-1-17</span>#}
{#                <b>未通过原因：因为写的太boring,因为写的太boring,因为写的太boring,因为写的太boring,</b>#}
{#            </li>#}
        </ul>
        <div id="pagination" class="page"></div>
        <script>
            // 调用父页面的方法改变菜单指示
            // window.parent.fnChangeMenu(2);

            $(function(){
                $("#pagination").pagination({
                    currentPage: {{ news_paginate.page }},
                    totalPage: {{ news_paginate.pages }},
                    callback: function(current) {
                        window.location.href="?page="+current
                    }
                });
            });
        </script>

    </div>
</body>
</html>